package com.kanche.bigbaby.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.kanche.bigbaby.fragment.SuperAwesomeCardFragment;

/**
 * Created by Chenshao_Young on 15/5/16.
 */
public class SACFragmentAdapter extends FragmentPagerAdapter {


    private String[] TITLES = { "看心情"};

    public SACFragmentAdapter(FragmentManager fm,String [] titles) {
        super(fm);
        this.TITLES = titles;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return TITLES[position];
    }

    @Override
    public int getCount() {
        return TITLES.length;
    }

    @Override
    public Fragment getItem(int position) {
        return SuperAwesomeCardFragment.newInstance(position);
    }
}
